#!/bin/sh

# Perform major updates

for STAGE in K B P; do
	if opnsense-update -${STAGE}; then
		echo "Rebooting now."
		reboot
	fi
done
